<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="java.util.*"%>    
<%
	//设置各种路径.然后把路径参数放到request对象中
	//for example	
	
	//String staticPath=ApplicationSetting.getString("common.static.address");
	//request.setAttribute("staticPath", staticPath);
	
	String path = request.getContextPath()+"/";
	String standardPath = request.getContextPath();	
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	String sbasePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+standardPath;
	
	
//	if(basePath.startsWith("http://localhost")||basePath.startsWith("http://172.16.16")||basePath.startsWith("http://172.16.17")||basePath.startsWith("http://172.16.18")){
		request.setAttribute("basePath", basePath);
		request.setAttribute("sBasePath", sbasePath);
		request.setAttribute("path", path);
		request.setAttribute("stardandPath", standardPath);
		
		pageContext.setAttribute("basePath", basePath);
		pageContext.setAttribute("sbasePath", sbasePath);	
		pageContext.setAttribute("path", path);
		pageContext.setAttribute("stardandPath", standardPath);
	//}else{
		
	//}
	request.setAttribute("staticPath", path);
	pageContext.setAttribute("staticPath", path);
	
%>


